package com.gitee.alpha.ie.vo;

import java.io.Serializable;
import lombok.Data;

/**
 * <br>
 *
 * @author 冰羽
 * @version 2.2.0
 */
@Data
public class CommentVo implements Serializable {

  /** 定位行 */
  private int rowIndex;
  /** 定位列 */
  private int colIndex;
  /** 行偏移 */
  private int rowOffset = 1;
  /** 列偏移 */
  private int colOffset = 1;
  /** 注释文本 */
  private String text;
  /** 作者 */
  private String author;

  public CommentVo(int rowIndex, int colIndex, String text) {
    this.rowIndex = rowIndex;
    this.colIndex = colIndex;
    this.text = text;
  }

  public CommentVo(int rowIndex, int colIndex, String text, String author) {
    this(rowIndex, colIndex, text);
    this.author = author;
  }

  public CommentVo(int rowIndex, int colIndex, int rowOffset, int colOffset, String text) {
    this(rowIndex, colIndex, text);
    this.rowOffset = rowOffset;
    this.colOffset = colOffset;
  }

  public CommentVo(
      int rowIndex, int colIndex, int rowOffset, int colOffset, String text, String author) {
    this(rowIndex, colIndex, rowOffset, colOffset, text);
    this.author = author;
  }
}
